package com.rpay.admin.util.http;

import com.rpay.admin.util.http.status.HttpStatus;

/**
 * Created by Administrator on 2017/3/22 0022.
 */
public class OutputResult {

    private int code;
    private String message;
    private Object data;

    public OutputResult(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public OutputResult(HttpStatus status, Object data) {
        this.code = status.getCode();
        this.message = status.getDesc();
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
